

// 查表的思想
let paths = [
    {name:'首页',path:'home',com:'Home',i18n:'navList.home'},
    {name:'预约挂号',path:'guahao',com:'Guahao',father:'预约管理',i18n:'navList.home'},
    {name:'预约体检',path:'tijian',com:'Tijian',father:'预约管理',i18n:'navList.home'},
    {name:'医院信息',path:'yiyuan',com:'Yiyuan',i18n:'navList.home'},
    {name:'数据统计',path:'datas',com:'Datas',i18n:'navList.home'}
]

function  i18nLy(val:string){


    let obj  = paths.find((item)=>{
        return item.name ==val
    })

    if(obj){
           
       return obj
    }else{
       return {path:'home1',i18n:'navList.home'}
    }
}


export default i18nLy